<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><s:text name="application.title" /></title>
<link href="<s:url value="/css/main.css"/>" rel="stylesheet"
	type="text/css" />
</head>

<body>
	<h1>
		<s:text name="application.title" />
	</h1>
	<div class="contenido">
		<p class="rojo">
			<s:text name="cliente.edit.identificador" />
		</p>
		<s:form action="modificarLinea" method="POST" theme="simple">
			<table class="tabla-editar-linea">
				<tr>
					<td><strong><s:text name="telefono" />:</strong></td>
					<td><s:textfield name="linea.telefono" readonly="true"/></td>
				</tr>
				<tr>
					<td><strong><s:text name="antiguedad" />:</strong></td>
					<td><s:textfield name="linea.antiguedad" /></td>
				</tr>
				<tr>
					<td><strong><s:text name="activa" />:</strong></td>
					<td><s:select list="#{true:'True', false:'False'}" name="linea.activa"/></td>
				</tr>
				<tr>
					<td><strong><s:text name="promocion" />:</strong></td>
					<td><s:textfield name="linea.promocion" /></td>
				</tr>
				<tr>
					<td><strong><s:text name="tarifaVoz" />:</strong></td>
					<td><s:textfield name="linea.tarifaVoz" /></td>
				</tr>
				<tr>
					<td><strong><s:text name="tarifaDatos" />:</strong></td>
					<td><s:textfield name="linea.tarifaDatos" /></td>
				</tr>
				<tr>
					<td><strong><s:text name="Clientes" />:</strong></td>
					<td><s:select listKey="dni" listValue="nombre"  list="clientesList" name="linea.dni" /></td>
					
				</tr>
			</table>
			<s:hidden name="cliente.dni" />
			<s:submit value="%{getText('guardar')}" />
			
			<s:url action="cliente" id="urlAtras" escapeAmp="false" >
					    <s:param name="linea.dni"><s:property value="linea.dni"/></s:param>
			</s:url>
			<button type="button" onclick="window.location.href='<s:property value="#urlAtras" />';"><s:text name="cancelar" /></button>
		</s:form>
	</div>
</body>
</html>